﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Linq.Expressions;

namespace Htse.Blue.Helpers
{
	public class DataGridEditColumn<T>
	{
		public string Text { get; private set; }

		public string Action { get; private set; }

		public string Controller { get; private set; }

		public Expression<Func<T, string>> Key { get; private set; }

		public int? Width { get; private set; }

		public DataGridEditColumn(string text, string action, string controller, Expression<Func<T, string>> key) :
			this(text, action, controller, key, null)
		{
		}

		public DataGridEditColumn(string text, string action, string controller, Expression<Func<T, string>> key, int? width)
		{
			Text = text;

			Action = action;

			Controller = controller;

			Key = key;

			Width = width;
		}
	}
}
